#include<stdio.h>
#include<sys/wait.h>
#include<sys/types.h>
#include<unistd.h>
int main()
{
	pid_t id = fork();
	if(id == 0)
	{
		//int ret = execl("/usr/bin/ls","ls","-a","-l",NULL);
		char* arg[]={
			"test.exe","-als",NULL
		};
		char* env[]={
			"syx",
			"666",
			NULL
		};
		execve("./test.exe",arg,env);
	}
	else
		printf("process swap start!\n");
	wait(NULL);
	printf("process swap finish!\n");
	return 0;
}
